package com.zk.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.alibaba.dubbo.config.annotation.Reference;
import com.zk.service.IRadioService;
import com.zk.service.ITestService;
import com.zk.service.IUserMsgService;

@RestController
public class UserController {

	@Reference
	ITestService testService;
	
	@Autowired
	IRadioService radioService;
	
	@Autowired
	IUserMsgService userMsgService;
	
	
	@RequestMapping("/getName")
	public String getUserName(String name) {
		System.err.println("**** controller 层执行******");
		String str = testService.getUserName();
		return "名字："+str;
	}
	@RequestMapping("/getlist")
	public String getUserList() {
		System.err.println("**** controller 层执行******");
		userMsgService.queryUser();
		
		return "success";
	}
	
}
